package com.logic.system.ws.dto;

import net.sf.json.JSONObject;

/**
 * Created by albert on 16-1-27.
 */
public class WeChatCorporateDTO {
	private Integer id;
	private String name;
	private Integer parentid;
	private Integer order;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getParentid() {
		return parentid;
	}
	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}
	public Integer getOrder() {
		return order;
	}
	public void setOrder(Integer order) {
		this.order = order;
	}
	
	@Override
	public String toString(){
		JSONObject data = new JSONObject();
		if(null!=id){
			data.put("id", id);
		}
		if(null!=name){
			data.put("name", name);
		}
		if(null!=id){
			data.put("parentid", parentid);
		}
		if(null!=id){
			data.put("order", order);
		}
		return data.toString();
	}
}
